package com.hr.service.impl;

import com.hr.mapper.EmployssMapper;
import com.hr.pojo.Empyloyee;
import com.hr.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author DSL
 * @create 2024-10-28 17:50
 */
@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    private EmployssMapper employssMapper;
    @Override
    public List<Empyloyee> findAll() {
/*
*  调用mapper
* */
        List<Empyloyee> employees = employssMapper.selectAll();
        return employees;
    }
}
